package json;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import javax.activation.MimeType;
import javax.activation.MimeTypeParseException;

import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;

public class JSonParseTest {
	private static final String filePath = "test1.json";
	private static final String userPath = "user.json";
		public static void main(String[] args) throws MimeTypeParseException {

			try {
//				 read the json file
				System.out.println(JsonParse.createuserJson(userPath).getName());

				
				

			} catch (NullPointerException ex) {
				ex.printStackTrace();
			}

		}

	}


